package com.aspose.cells;

import java.util.ArrayList;
import java.util.Iterator;

class zapf extends zbz {
   private ArrayList a;

   zapf() {
      this.c(93);
   }

   void a(Shape var1, int var2) {
      if (this.c == null) {
         this.b(70);
         this.c = new byte[this.d()];
         int var3 = this.e(var1);
         this.c[8] = 1;
         this.c[9] = 33;
         var3 += this.a(var3, 100, 10);
         switch(var1.getMsoDrawingType()) {
         case 20:
            Object var4 = ((ComboBox)var1).a();
            byte[] var5;
            if (var4 instanceof AutoFilter) {
               var5 = new byte[]{19, 0, -18, 31, 0, 0, 0, 0, 4, 0, 1, 3, 0, 0, 2, 0, 8, 0, 108, 0};
               System.arraycopy(var5, 0, this.c, var3, var5.length);
            } else if (var4 instanceof ValidationCollection) {
               var5 = new byte[]{19, 0, -18, 31, 0, 0, 0, 0, 1, 0, 1, 6, 0, 0, 2, 0, 8, 0, 64, 0};
               System.arraycopy(var5, 0, this.c, var3, var5.length);
            } else if (var4 instanceof PivotTable) {
               var5 = new byte[]{19, 0, -18, 31, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2, 0, 8, 0, 0, 0};
               System.arraycopy(var5, 0, this.c, var3, var5.length);
            }
         default:
         }
      } else {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, this.c, 6, 2);
      }
   }

   void a(Shape var1) throws Exception {
      switch(var1.getMsoDrawingType()) {
      case 11:
         this.a((CheckBox)var1);
         return;
      case 12:
         this.a((RadioButton)var1);
         return;
      case 16:
      case 17:
         this.d(var1);
         return;
      case 18:
         this.a((ListBox)var1);
         return;
      case 20:
         if (!var1.N().h().b()) {
            this.a((ComboBox)var1);
         } else {
            this.c(var1);
         }

         return;
      case 24:
         if (((OleObject)var1).i()) {
            this.a((OleObject)var1);
            return;
         }
      case 13:
      case 14:
      case 15:
      case 19:
      case 21:
      case 22:
      case 23:
      default:
         if (var1.O().a != null && var1.O().a.size() != 0) {
            this.c(var1);
         } else {
            this.b(26);
            switch(var1.getMsoDrawingType()) {
            case 0:
               this.a((GroupShape)var1);
               break;
            case 19:
               this.a((GroupBox)var1);
               break;
            case 24:
               this.a((OleObject)var1);
               break;
            default:
               byte[] var2 = var1.O().b;
               if (var2 != null) {
                  this.b(this.d() + (short)var2.length);
               }

               this.c = new byte[this.d()];
               int var3 = this.e(var1);
               if (var2 != null) {
                  System.arraycopy(var2, 0, this.c, var3, var2.length);
                  int var10000 = var3 + var2.length;
               }
            }

         }
      }
   }

   int b(Shape var1) {
      int var2 = 0;
      byte[] var4;
      if (var1.O().a != null && var1.O().a.size() != 0) {
         for(Iterator var3 = var1.O().a.iterator(); var3.hasNext(); var2 += (short)var4.length) {
            var4 = (byte[])var3.next();
         }
      }

      return var2;
   }

   void c(Shape var1) {
      this.b(22);
      if (var1.O().a != null && var1.O().a.size() != 0) {
         Iterator var2 = var1.O().a.iterator();

         while(var2.hasNext()) {
            byte[] var3 = (byte[])var2.next();
            this.b(this.d() + (short)var3.length);
         }
      }

      this.c = new byte[this.d()];
      int var5 = this.e(var1);
      byte[] var4;
      if (var1.O().a != null && var1.O().a.size() != 0) {
         for(Iterator var6 = var1.O().a.iterator(); var6.hasNext(); var5 += (short)var4.length) {
            var4 = (byte[])var6.next();
            System.arraycopy(var4, 0, this.c, var5, var4.length);
         }
      }

   }

   void a(GroupBox var1) {
      this.b(this.d() + 10);
      this.c = new byte[this.d()];
      int var2 = this.e(var1);
      this.c[var2] = 15;
      this.c[var2 + 2] = 6;
      var2 += 4;
      if (!var1.getShadow()) {
         this.c[var2 + 4] = 1;
      }

      var2 += 6;
   }

   void a(GroupShape var1) {
      this.b(this.d() + 6);
      this.c = new byte[this.d()];
      int var2 = this.e(var1);
      this.c[var2] = 6;
      this.c[var2 + 2] = 2;
      var2 += 6;
   }

   void a(RadioButton var1) {
      this.b(72);
      byte[] var2 = var1.X();
      if (var2 != null) {
         this.b(this.d() + (short)(11 + var2.length));
      }

      if (var1.O().a != null && var1.O().a.size() > 0) {
         Iterator var3 = var1.O().a.iterator();

         while(var3.hasNext()) {
            byte[] var4 = (byte[])var3.next();
            this.b(this.d() + (short)var4.length);
         }
      }

      this.c = new byte[this.d()];
      int var6 = this.e(var1);
      this.c[var6] = 10;
      this.c[var6 + 2] = 12;
      var6 += 4;
      if (var1.isChecked()) {
         this.c[var6] = 1;
      }

      if (var2 != null) {
         this.c[var6 + 2] = 12;
         this.c[var6 + 4] = 108;
         this.c[var6 + 5] = 1;
      }

      this.c[var6 + 10] = 3;
      var6 += 12;
      this.c[var6] = 11;
      this.c[var6 + 2] = 6;
      var6 += 4;
      if (var1.isChecked()) {
         this.c[var6] = 88;
         this.c[var6 + 1] = 14;
      } else {
         this.c[var6] = -16;
         this.c[var6 + 1] = 37;
      }

      this.c[var6 + 2] = -54;
      this.c[var6 + 3] = 1;
      this.c[var6 + 4] = 1;
      var6 += 6;
      if (var2 != null) {
         var6 += this.b(var6, var2);
      }

      this.c[var6] = 18;
      this.c[var6 + 2] = 8;
      var6 += 4;
      if (var1.isChecked()) {
         this.c[var6] = 1;
      }

      if (var1.getShadow()) {
         this.c[var6 + 6] = 2;
      } else {
         this.c[var6 + 6] = 3;
      }

      var6 += 8;
      this.c[var6] = 17;
      this.c[var6 + 2] = 4;
      var6 += 4;
      this.c[var6 + 2] = 1;
      var6 += 4;
      byte[] var5;
      if (var1.O().a != null && var1.O().a.size() > 0) {
         for(Iterator var7 = var1.O().a.iterator(); var7.hasNext(); var6 += (short)var5.length) {
            var5 = (byte[])var7.next();
            System.arraycopy(var5, 0, this.c, var6, var5.length);
         }
      }

   }

   void a(CheckBox var1) {
      this.b(this.d() + 22 + 4 + 28);
      int var2 = var1.a();
      byte[] var3 = var1.X();
      if (var3 != null) {
         this.b(this.d() + (short)(11 + var3.length));
      }

      if (var1.O().a != null && var1.O().a.size() > 0) {
         Iterator var4 = var1.O().a.iterator();

         while(var4.hasNext()) {
            byte[] var5 = (byte[])var4.next();
            this.b(this.d() + (short)var5.length);
         }
      }

      this.c = new byte[this.d()];
      int var7 = this.e(var1);
      this.c[var7] = 10;
      this.c[var7 + 2] = 12;
      var7 += 4;
      this.c[var7] = (byte)var2;
      if (var3 != null) {
         this.c[var7 + 2] = 12;
         this.c[var7 + 4] = -55;
         this.c[var7 + 5] = 1;
      }

      var7 += 12;
      if (var3 != null) {
         var7 += this.b(var7, var3);
      }

      byte[] var6;
      Iterator var8;
      if (var1.O().a != null && var1.O().a.size() > 0) {
         var8 = var1.O().a.iterator();

         while(var8.hasNext()) {
            var6 = (byte[])var8.next();
            if (var6[0] == 4 && var6[1] == 0) {
               System.arraycopy(var6, 0, this.c, var7, var6.length);
               var7 += (short)var6.length;
               break;
            }
         }
      }

      this.c[var7] = 18;
      this.c[var7 + 2] = 8;
      var7 += 4;
      this.c[var7] = (byte)var2;
      if (var1.getShadow()) {
         this.c[var7 + 6] = 2;
      } else {
         this.c[var7 + 6] = 3;
      }

      var7 += 8;
      if (var1.O().a != null && var1.O().a.size() > 0) {
         var8 = var1.O().a.iterator();

         do {
            if (!var8.hasNext()) {
               return;
            }

            var6 = (byte[])var8.next();
         } while(var6[0] == 4 && var6[1] == 0);

         System.arraycopy(var6, 0, this.c, var7, var6.length);
         int var10000 = var7 + (short)var6.length;
      }

   }

   void a(ComboBox var1) {
      this.b(70);
      if (var1.O().a != null && var1.O().a.size() > 0) {
         Iterator var2 = var1.O().a.iterator();

         while(var2.hasNext()) {
            byte[] var3 = (byte[])var2.next();
            this.b(this.d() + (short)var3.length);
         }
      }

      byte[] var9 = var1.X();
      if (var9 != null) {
         this.b(this.d() + (short)(11 + var9.length));
      }

      int var10 = 0;
      byte[] var4 = var1.Z();
      if (var4 != null) {
         var10 = var1.b();
         this.b(this.d() + (short)(7 + var4.length));
      }

      boolean var5 = false;
      int var6;
      if (var1.a != null) {
         for(var6 = 0; var6 < var1.a.length; ++var6) {
            short var11 = (short)(3 + var1.a[var6].length() * 2);
            if (this.d() + var11 > 8224) {
               break;
            }

            this.b(this.d() + var11);
         }
      }

      this.c = new byte[this.d()];
      var6 = this.e(var1);
      var6 += this.a(var6, 0, 8);
      Iterator var7;
      byte[] var8;
      if (var1.O().a != null && var1.O().a.size() > 0) {
         var7 = var1.O().a.iterator();

         while(var7.hasNext()) {
            var8 = (byte[])var7.next();
            if (var8[0] == 4) {
               System.arraycopy(var8, 0, this.c, var6, var8.length);
               var6 += (short)var8.length;
               break;
            }
         }
      }

      if (var9 != null) {
         var6 += this.a(var6, var9);
      }

      if (var1.O().a != null && var1.O().a.size() > 0) {
         var7 = var1.O().a.iterator();

         while(var7.hasNext()) {
            var8 = (byte[])var7.next();
            if (var8[0] != 4) {
               System.arraycopy(var8, 0, this.c, var6, var8.length);
               var6 += (short)var8.length;
               break;
            }
         }
      }

      int var10000 = var6 + this.a(var6, var4, var10, var1.getSelectedIndex(), var1.getShadow(), (byte)0, var1.getDropDownLines(), (ArrayList)null, var1.a);
   }

   void a(ListBox var1) {
      this.b(60);
      if (var1.O().a != null && var1.O().a.size() > 0) {
         Iterator var2 = var1.O().a.iterator();

         while(var2.hasNext()) {
            byte[] var3 = (byte[])var2.next();
            this.b(this.d() + (short)var3.length);
         }
      }

      byte[] var6 = var1.X();
      if (var6 != null) {
         this.b(this.d() + (short)(11 + var6.length));
      }

      int var7 = 0;
      byte[] var4 = var1.Z();
      if (var4 != null) {
         var7 = var1.getItemCount();
         this.b(this.d() + (short)(7 + var4.length));
         if (var1.getSelectionType() != 0) {
            this.b(this.d() + (short)var7);
         }
      }

      this.c = new byte[this.d()];
      int var5 = this.e(var1);
      var5 += this.a(var5, var1.b(), var1.c(), var1.d(), var1.e(), var1.getPageChange(), var1.getShadow());
      if (var6 != null) {
         var5 += this.a(var5, var6);
      }

      int var10000 = var5 + this.a(var5, var4, var7, var1.getSelectedIndex(), var1.getShadow(), (byte)var1.getSelectionType(), -1, var1.a(), (String[])null);
   }

   void d(Shape var1) {
      this.b(50);
      Object var2 = null;
      byte[] var5;
      if (var1.getMsoDrawingType() == 17) {
         var5 = ((ScrollBar)var1).X();
      } else {
         var5 = ((Spinner)var1).X();
      }

      if (var5 != null) {
         this.b(this.d() + (short)(11 + var5.length));
      }

      byte[] var3 = var1.O().b;
      if (var3 != null) {
         this.b(this.d() + (short)var3.length);
      }

      this.c = new byte[this.d()];
      int var4 = this.e(var1);
      if (var1.getMsoDrawingType() == 17) {
         var4 += this.a(var4, (ScrollBar)var1);
      } else {
         var4 += this.a(var4, (Spinner)var1);
      }

      if (var5 != null) {
         var4 += this.a(var4, var5);
      }

      if (var3 != null) {
         System.arraycopy(var3, 0, this.c, var4, var3.length);
         int var10000 = var4 + var3.length;
      }

   }

   private int a(int var1, Spinner var2) {
      this.c[var1] = 12;
      this.c[var1 + 2] = 20;
      var1 += 4;
      var1 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getCurrentValue()), 0, this.c, var1, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getMin()), 0, this.c, var1 + 2, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getMax()), 0, this.c, var1 + 4, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getIncrementalChange()), 0, this.c, var1 + 6, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.a()), 0, this.c, var1 + 8, 2);
      if (var2.isHorizontal()) {
         this.c[var1 + 10] = 1;
      }

      this.c[var1 + 12] = 16;
      if (var2.getShadow()) {
         this.c[var1 + 14] = 1;
      } else {
         this.c[var1 + 14] = 9;
      }

      return 24;
   }

   private int a(int var1, ScrollBar var2) {
      this.c[var1] = 12;
      this.c[var1 + 2] = 20;
      var1 += 4;
      var1 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getCurrentValue()), 0, this.c, var1, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getMin()), 0, this.c, var1 + 2, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getMax()), 0, this.c, var1 + 4, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getIncrementalChange()), 0, this.c, var1 + 6, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getPageChange()), 0, this.c, var1 + 8, 2);
      if (var2.isHorizontal()) {
         this.c[var1 + 10] = 1;
      }

      this.c[var1 + 12] = 16;
      if (var2.getShadow()) {
         this.c[var1 + 14] = 1;
      } else {
         this.c[var1 + 14] = 9;
      }

      return 24;
   }

   private int a(int var1, int var2, int var3) {
      this.c[var1] = 12;
      this.c[var1 + 2] = 20;
      var1 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, this.c, var1 + 8, 2);
      this.c[var1 + 10] = 1;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, var1 + 12, 2);
      this.c[var1 + 16] = 16;
      this.c[var1 + 18] = 1;
      return 24;
   }

   private int a(int var1, int var2, int var3, int var4, int var5, int var6, boolean var7) {
      this.c[var1] = 12;
      this.c[var1 + 2] = 20;
      var1 += 4;
      var1 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, this.c, var1, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, var1 + 2, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, var1 + 4, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, var1 + 6, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var6), 0, this.c, var1 + 8, 2);
      this.c[var1 + 12] = 16;
      if (var7) {
         this.c[var1 + 14] = 1;
      } else {
         this.c[var1 + 14] = 9;
      }

      return 24;
   }

   private int a(int var1, byte[] var2) {
      this.c[var1] = 14;
      this.c[var1 + 2] = (byte)(7 + var2.length);
      var1 += 4;
      this.c[var1] = (byte)var2.length;
      this.c[var1 + 2] = 104;
      this.c[var1 + 3] = 42;
      this.c[var1 + 4] = -54;
      this.c[var1 + 5] = 1;
      System.arraycopy(var2, 0, this.c, var1 + 6, var2.length);
      return 11 + var2.length;
   }

   private int a(int var1, byte[] var2, int var3, int var4, boolean var5, byte var6, int var7, ArrayList var8, String[] var9) {
      int var10 = var1;
      this.c[var1] = 19;
      this.c[var1 + 2] = -18;
      this.c[var1 + 3] = 31;
      var1 += 4;
      if (var2 != null) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.length + 7), 0, this.c, var1, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.length), 0, this.c, var1 + 2, 2);
         var1 += 4;
         this.c[var1++] = 104;
         this.c[var1++] = 42;
         this.c[var1++] = -64;
         this.c[var1++] = 1;
         System.arraycopy(var2, 0, this.c, var1, var2.length);
         var1 += var2.length;
         this.c[var1++] = -16;
         if (var3 != 0) {
            System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, var1, 2);
         }

         var1 += 2;
      } else {
         if (var9 != null) {
            System.arraycopy(com.aspose.cells.b.a.zc.a(var9.length), 0, this.c, var1 + 2, 2);
         }

         var1 += 4;
      }

      if (var6 == 0 && var4 != -1) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var4 + 1), 0, this.c, var1, 2);
      }

      byte var11 = (byte)((var6 & 255) << 4);
      if (var9 != null && var2 == null) {
         var11 = (byte)(var11 | 2);
      }

      if (!var5) {
         var11 = (byte)(var11 | 8);
      }

      this.c[var1 + 2] = var11;
      var1 += 6;
      if (var7 != -1) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var7), 0, this.c, var1 + 2, 2);
         var1 += 6;
         var1 += 4;
      }

      int var12;
      if (var9 != null) {
         for(int var15 = 0; var15 < var9.length; ++var15) {
            if (var1 < this.d()) {
               System.arraycopy(com.aspose.cells.b.a.zc.a(var9[var15].length()), 0, this.c, var1, 2);
               this.c[var1 + 2] = 1;
               System.arraycopy(Encoding.getUnicode().a(var9[var15]), 0, this.c, var1 + 3, var9[var15].length() * 2);
               var1 += 3 + var9[var15].length() * 2;
            } else {
               var12 = this.d() - (var10 + 4) - 1;
               System.arraycopy(com.aspose.cells.b.a.zc.a(var12), 0, this.c, var10 + 2, 2);
               this.a = new ArrayList();
               byte[] var13 = new byte[8228];
               var13[0] = 60;
               com.aspose.cells.b.a.a.ze.a(this.a, (Object)var13);

               int var14;
               for(var14 = 4; var15 < var9.length; ++var15) {
                  if (var14 + 3 + 2 * var9.length > var13.length) {
                     System.arraycopy(com.aspose.cells.b.a.zc.a(var14 - 4), 0, var13, 2, 2);
                     var13 = new byte[8228];
                     var13[0] = 60;
                     com.aspose.cells.b.a.a.ze.a(this.a, (Object)var13);
                     var14 = 4;
                  }

                  System.arraycopy(com.aspose.cells.b.a.zc.a(var9[var15].length()), 0, var13, var14, 2);
                  var13[var14 + 2] = 1;
                  System.arraycopy(Encoding.getUnicode().a(var9[var15]), 0, var13, var14 + 3, var9[var15].length() * 2);
                  var14 += 3 + var9[var15].length() * 2;
               }

               if (var14 > 4) {
                  System.arraycopy(com.aspose.cells.b.a.zc.a(var14 - 4), 0, var13, 2, 2);
               }
            }
         }
      }

      if (var6 != 0 && var8 != null && var8.size() != 0) {
         for(Iterator var16 = var8.iterator(); var16.hasNext(); this.c[var1 + (var12 & '\uffff')] = 1) {
            var12 = (Integer)var16.next();
         }

         var1 += var3;
      }

      return var1 - var10;
   }

   private int b(int var1, byte[] var2) {
      this.c[var1] = 20;
      this.c[var1 + 2] = (byte)(7 + var2.length);
      var1 += 4;
      this.c[var1] = (byte)var2.length;
      this.c[var1 + 2] = -72;
      this.c[var1 + 3] = 44;
      this.c[var1 + 4] = -54;
      this.c[var1 + 5] = 1;
      System.arraycopy(var2, 0, this.c, var1 + 6, var2.length);
      return 11 + var2.length;
   }

   void a(OleObject var1) throws Exception {
      this.b(26);
      int var2 = 0;
      byte[] var3 = null;
      boolean var4 = false;
      byte[] var5 = null;
      boolean var6 = var1.isLink();
      int var7;
      int var8;
      if (var6) {
         var5 = new byte[]{9, 0, 16, 0, 14, 0, 7, 0, -24, 72, -26, 4, 89, 0, 0, 0, 0, 0, 0, 0};
         var7 = var1.m();
         if (var7 != -1) {
            var8 = var1.n();
            if (var7 != -1 && var8 != -1) {
               System.arraycopy(com.aspose.cells.b.a.zc.a(var7), 0, var5, 13, 2);
               System.arraycopy(com.aspose.cells.b.a.zc.a(var8 + 1), 0, var5, 15, 2);
               var2 = var5.length - 4;
            } else {
               var6 = false;
            }
         } else {
            var6 = false;
         }
      }

      if (!var6) {
         var3 = zco.a(var1.getProgID());
         var2 = 21 + (var3 == null ? 0 : var3.length);
         var4 = var2 % 2 != 0;
         if (var4) {
            ++var2;
         }
      }

      this.b(this.d() + (short)(12 + var2 + 4));
      var7 = this.b(var1);
      this.b(this.d() + (short)var7);
      this.c = new byte[this.d()];
      var8 = this.e(var1);
      this.c[var8] = 7;
      this.c[var8 + 2] = 2;
      this.c[var8 + 4] = 2;
      var8 += 6;
      this.c[var8] = 8;
      this.c[var8 + 2] = 2;
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var1.b()), 0, this.c, var8 + 4, 2);
      var8 += 6;
      if (var6) {
         System.arraycopy(var5, 0, this.c, var8, var5.length);
         var8 += var5.length;
      } else {
         this.c[var8] = 9;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, this.c, var8 + 2, 2);
         var8 += 4;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2 - 6), 0, this.c, var8, 2);
         var8 += 2;
         byte[] var9 = new byte[]{5, 0, -108, 14, -54, 1, 2, -36, 19, -88, 1, 3};
         System.arraycopy(var9, 0, this.c, var8, var9.length);
         var8 += var9.length;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getProgID().length()), 0, this.c, var8, 2);
         if (var3 != null) {
            this.c[var8 + 2] = (byte)(var3.length == var1.getProgID().length() ? 0 : 1);
         }

         var8 += 3;
         if (var3 != null) {
            System.arraycopy(var3, 0, this.c, var8, var3.length);
            var8 += var3.length;
         }

         if (var4) {
            ++var8;
         }

         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.s()), 0, this.c, var8, 4);
         var8 += 4;
      }

      byte[] var10;
      if (var7 != 0) {
         for(Iterator var11 = var1.O().a.iterator(); var11.hasNext(); var8 += var10.length) {
            var10 = (byte[])var11.next();
            System.arraycopy(var10, 0, this.c, var8, var10.length);
         }
      }

   }

   int e(Shape var1) {
      this.c[0] = 21;
      this.c[2] = 18;
      byte var2 = 4;
      switch(var1.getMsoDrawingType()) {
      case 24:
         this.c[var2] = 8;
         break;
      default:
         this.c[var2] = (byte)var1.getMsoDrawingType();
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.K()), 0, this.c, var2 + 2, 2);
      if (var1.isLocked()) {
         this.c[var2 + 4] = (byte)(this.c[var2 + 4] | 1);
      }

      if (var1.isPrintable()) {
         this.c[var2 + 4] = (byte)(this.c[var2 + 4] | 16);
      }

      if (var1.O().e()) {
         this.c[var2 + 5] = (byte)(this.c[var2 + 5] | 1);
      }

      if (var1.O().c()) {
         this.c[var2 + 5] = (byte)(this.c[var2 + 5] | 32);
      }

      if (var1.O().d()) {
         this.c[var2 + 5] = (byte)(this.c[var2 + 5] | 64);
      }

      int var3 = var2 + 18;
      return var3;
   }

   void a(zqa var1) throws Exception {
      byte[] var2 = new byte[this.c.length + 4];
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.f()), 0, var2, 0, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.d()), 0, var2, 2, 2);
      System.arraycopy(this.c, 0, var2, 4, this.c.length);
      var1.a(var2);
      if (this.a != null) {
         for(int var3 = 0; var3 < this.a.size(); ++var3) {
            byte[] var4 = (byte[])((byte[])this.a.get(var3));
            short var5 = com.aspose.cells.b.a.zc.b(var4, 2);
            var1.a(var4, var5 + 4);
         }
      }

   }
}
